package com.mkait.thief.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Data;

/**
 * 
 * @TableName complaint
 */
@TableName(value ="complaint")
@Data
public class Complaint implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "trade_no")
    private String tradeNo;

    /**
     * 
     */
    @TableField(value = "type")
    private String type;

    /**
     * 
     */
    @TableField(value = "qq")
    private String qq;

    /**
     * 
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 
     */
    @TableField(value = "`desc`")
    private String desc;

    /**
     * 0待处理 1已处理
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 管理员查看状态
     */
    @TableField(value = "admin_read")
    private Integer adminRead;

    /**
     * 
     */
    @TableField(value = "create_at")
    private Integer createAt;

    /**
     * 
     */
    @TableField(value = "create_ip")
    private String createIp;

    /**
     * 投诉单查询密码
     */
    @TableField(value = "pwd")
    private String pwd;

    /**
     * 申诉结果
     */
    @TableField(value = "result")
    private Integer result;

    /**
     * 申诉过期时间
     */
    @TableField(value = "expire_at")
    private Integer expireAt;

    /**
     * 上级代理商ID
     */
    @TableField(value = "proxy_parent_user_id")
    private Integer proxyParentUserId;

    /**
     * 
     */
    @TableField(value = "buyer_qrcode")
    private String buyerQrcode;

    @TableField(value = "num")
    private Integer num;

    @TableField(value = "price")
    private BigDecimal price;

    @TableField(value = "select_cards")
    private String selectCards;

    @TableField(value = "merchant_status")
    private Integer merchantStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Complaint other = (Complaint) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getTradeNo() == null ? other.getTradeNo() == null : this.getTradeNo().equals(other.getTradeNo()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getQq() == null ? other.getQq() == null : this.getQq().equals(other.getQq()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getAdminRead() == null ? other.getAdminRead() == null : this.getAdminRead().equals(other.getAdminRead()))
            && (this.getCreateAt() == null ? other.getCreateAt() == null : this.getCreateAt().equals(other.getCreateAt()))
            && (this.getCreateIp() == null ? other.getCreateIp() == null : this.getCreateIp().equals(other.getCreateIp()))
            && (this.getPwd() == null ? other.getPwd() == null : this.getPwd().equals(other.getPwd()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()))
            && (this.getExpireAt() == null ? other.getExpireAt() == null : this.getExpireAt().equals(other.getExpireAt()))
            && (this.getProxyParentUserId() == null ? other.getProxyParentUserId() == null : this.getProxyParentUserId().equals(other.getProxyParentUserId()))
            && (this.getBuyerQrcode() == null ? other.getBuyerQrcode() == null : this.getBuyerQrcode().equals(other.getBuyerQrcode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getTradeNo() == null) ? 0 : getTradeNo().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getQq() == null) ? 0 : getQq().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getAdminRead() == null) ? 0 : getAdminRead().hashCode());
        result = prime * result + ((getCreateAt() == null) ? 0 : getCreateAt().hashCode());
        result = prime * result + ((getCreateIp() == null) ? 0 : getCreateIp().hashCode());
        result = prime * result + ((getPwd() == null) ? 0 : getPwd().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        result = prime * result + ((getExpireAt() == null) ? 0 : getExpireAt().hashCode());
        result = prime * result + ((getProxyParentUserId() == null) ? 0 : getProxyParentUserId().hashCode());
        result = prime * result + ((getBuyerQrcode() == null) ? 0 : getBuyerQrcode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", tradeNo=").append(tradeNo);
        sb.append(", type=").append(type);
        sb.append(", qq=").append(qq);
        sb.append(", mobile=").append(mobile);
        sb.append(", desc=").append(desc);
        sb.append(", status=").append(status);
        sb.append(", adminRead=").append(adminRead);
        sb.append(", createAt=").append(createAt);
        sb.append(", createIp=").append(createIp);
        sb.append(", pwd=").append(pwd);
        sb.append(", result=").append(result);
        sb.append(", expireAt=").append(expireAt);
        sb.append(", proxyParentUserId=").append(proxyParentUserId);
        sb.append(", buyerQrcode=").append(buyerQrcode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}